package com.example.jasypt.http;

/**
 * <p>
 * 响应状态接口
 * </p>
 *
 * @author 王令
 * @since 2021-12-30
 */
public interface ResultStatus {

    Integer HTTP_OK_CODE = 20000;
    String HTTP_OK_MSG = "response.success";
    Integer HTTP_FAIL_CODE = 40000;
    String HTTP_FAIL_MSG = "response.fail";
    Integer HTTP_ERROR_CODE = 50000;
    String HTTP_ERROR_MSG = "response.error";

    /**
     * 响应码
     *
     * @return 响应码
     */
    Integer getCode();

    /**
     * 错误消息
     *
     * @return 错误消息
     */
    String getMessage();
}
